import React, { Component } from 'react'

export default class Jsx extends Component {

  fullname(firstname, lastname) {
    return firstname + '-' + lastname;
  }

  render() {

    let { firstname, lastname } = this.props;


    let islogin = true;
    if (islogin) {
      return (
        <div>
          {/* {
            1 + 2 + 3

          }
          <hr />
          {
            firstname
          }
          <hr />
          {
            this.fullname(firstname, lastname)
          } */}
          <h1>您已经登录</h1>
        </div>
      )
    } else {
      return <h1>您还没有登录</h1>
    }



  }
}
